import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router';

const routes:Array<RouteRecordRaw>=[
    {
        path:'/',
        name:'HelloWorld',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
       path:'/Register',
       name:'Register',
       component:()=>import('../View/Users/Register.vue')
    }
]
// 创建路由实例
const router=createRouter({
    history:createWebHistory(),
    routes
})
// 导出路由实例
export default router;